﻿<%@ Page Title="Log In" Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs"
    Inherits="Pager.Account.Login" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../_css/login.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="wrapper">
        <div id="conteudo">
            <div id="login">
                <form id="Form1" runat="server">
                <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false" OnLoginError="LoginUser_LoginError">
                    <LayoutTemplate>
                        <div class="form">
                            <asp:UpdatePanel runat="server" ID="up1">
                                <ContentTemplate>

                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Usuario:</asp:Label><br />
                            
                            <asp:TextBox ID="UserName" runat="server" ontextchanged="UserName_TextChanged"></asp:TextBox><br />
                            <asp:RequiredFieldValidator runat="server" ID="Usuario" ControlToValidate="UserName"
                                 Display="None" ErrorMessage="<b>Campo requerido</b><br />O usuário é obrigatório." 
                                 ValidationGroup="LoginUserValidationGroup" />
                            <cc1:ValidatorCalloutExtender runat="Server" ID="VCEUsuario"
                                 HighlightCssClass="validatorCalloutHighlight" 
                                 TargetControlID="Usuario" Width="185px" />

                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Senha:</asp:Label><br />

                            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>                                
                            <asp:RequiredFieldValidator runat="server" ID="RVSenha"
                                 ControlToValidate="Password"
                                 Display="None"
                                 ErrorMessage="<b>Campo requerido</b><br />A senha é obrigatória." 
                                 ValidationGroup="LoginUserValidationGroup"/>
                            <cc1:ValidatorCalloutExtender runat="Server" ID="VCESenha"
                                 TargetControlID="RVSenha" 
                                 HighlightCssClass="validatorCalloutHighlight"                                    
                                 Width="185px" />

                            <br />
                            <asp:CheckBox ID="RememberMe" runat="server" Text="Manter conectado" />
                            <br />
                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" CssClass="bgbotao"
                                ValidationGroup="LoginUserValidationGroup" />

                              
                                    <asp:Label id="lblMessage" runat="server" />
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="LoginButton" EventName="Click" />
                                </Triggers>
                             </asp:UpdatePanel>
                        </div>
                    </LayoutTemplate>
                </asp:Login>
                </form>
            </div>
            <div class="credito">Versao 1.0</div>
        </div>
    </div>
</body>

</html>
